vui.Namespace('View.roleList.Page', function () {
    var _this = this;
    _this.Init = function () {
        vui.Page.Init({
            componentList: ['antdComponents', 'HeaderBox', 'LeftMenu', 'TableList', {
                id: 'roleList',
                isPage: true,
                baseDir:'/sys/'
            }],
            fn: function () {
                _bindData();
                _bindEvent();
            }
        })

    };
    // 
    //初始化本地数据
    var _bindData = function () {

        var pageData = {
            
        }

        vui.Page.Render({
            id: ".app",
            componentID: "Page",
            isPage: true,
            template: '<Page />',
            data: pageData,
        });
        vui.Component.Page.setState(pageData);
        vui.Catch = {
            callBack: function (page, pageSize) {

                data.PageIndex = page;
                data.PageSize = pageSize;

            },
            clear:function(){
                vui.Component.Page.setState(pageData);
            },
            checkChange:function(checked){
                pageData.table1.loading = checked;
                vui.Component.Page.setState(pageData);
            }
        }
    }
    // 
    var _bindEvent = function(){

    }
});
